<%@ page import="com.tml.entry.SmbmsUser" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: tkl
  Date: 2021/9/12
  Time: 19:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h1>主页</h1>
    <h1>亲爱的<%=session.getAttribute("userName")%>，欢迎回来！</h1>
    <center>
        <table border="1">
            <tr>
                <th>用户编码</th>
                <th>用户昵称</th>
                <th>用户密码</th>
            </tr>
            <% for (SmbmsUser smbmsUser:(List<SmbmsUser>)session.getAttribute("smbmsUserList")){%>
            <tr>
                <td><%=smbmsUser.getUserCode()%></td>
                <td><%=smbmsUser.getUserName()%></td>
                <td><%=smbmsUser.getUserPassword()%></td>
            </tr>
            <%
                }
            %>


                </table>

            </center>
        </table>

    </center>
</body>
</html>
